![]() |
![]() |
![]() |
Set up Dark Clouds for use - do this before the main loop, but after calling DC SET CLOUDY. That way the clouds will start with whatever level of coverage you set. Somewhere after DC INIT, you should call TEXTURE BACKDROP to put the sky image in your scene.
DC INIT Image Index, Steps per Day
int: Image Index
Which texture will be used for the background. Use this number to call TEXTURE BACKDROP after DC INIT.
int: Steps per Day
How many keyframe steps in a 24-hour day - important! Too many steps per day will slow down your game, not enough will make the weather less dynamic. You want about one step every 2 minutes of real time - so if a minute of real time is an hour of game time, try about 12 steps per day.
This command does not return a value.
rem half-fill the sky with clouds:
dc set cloudy 0.5
rem set sky brightness to 1:
dc set brightness 1
rem set wind to 10 mph at 270 degrees:
dc set wind 3,270
rem init with texture number 1, and number of keyframes per day:
dc init 1,10
rem show texture 1 as the backdrop:
texture backdrop 1
DarkCLOUDS Commands Menu
Index